
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;

/**电池信息表**/
@Entity
@Table(name = "t_Battery_Price")
public class BatteryPrice
{
    //PK
    private Long id;

    /**品牌不做实体映射**/
    private String pinPai;

    /**型号不做实体映射*/
    private String xingHao;

    /**电池id**/
    private Long batteryId;

    /**电池图片**/
    private String imageUrl;

    private String minImageUrl;

    public String getMinImageUrl()
    {
        return minImageUrl;
    }

    public void setMinImageUrl(String minImageUrl)
    {
        this.minImageUrl = minImageUrl;
    }

    /**市场换够价**/
    private String marketPrice;

    /**本网换购价**/
    private String ourPrice;

    /**详细说明**/
    private String detailInfo;

    /**创建时间**/
    private String crateDate;

    /**更新时间**/
    private String updateDate;

    /**排序**/
    private Integer sort;

    /**省**/
    private String province;

    /**市*/
    private String city;

    /**县**/
    private String town;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    @Column(name = "imageUrl", length = 500)
    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    @Column(name = "marketPrice", length = 10)
    public String getMarketPrice()
    {
        return marketPrice;
    }

    public void setMarketPrice(String marketPrice)
    {
        this.marketPrice = marketPrice;
    }

    @Column(name = "ourPrice", length = 10)
    public String getOurPrice()
    {
        return ourPrice;
    }

    public void setOurPrice(String ourPrice)
    {
        this.ourPrice = ourPrice;
    }

    @Column(name = "detailInfo", length = 500)
    public String getDetailInfo()
    {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo)
    {
        this.detailInfo = detailInfo;
    }

    @Column(name = "crateDate", length = 30)
    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    @Column(name = "updateDate", length = 30)
    public String getUpdateDate()
    {
        return updateDate;
    }

    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public Integer getSort()
    {
        return sort;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public Long getBatteryId()
    {
        return batteryId;
    }

    public void setBatteryId(Long batteryId)
    {
        this.batteryId = batteryId;
    }

    @Transient
    public String getPinPai()
    {
        return pinPai;
    }

    public void setPinPai(String pinPai)
    {
        this.pinPai = pinPai;
    }

    @Transient
    public String getXingHao()
    {
        return xingHao;
    }

    public void setXingHao(String xingHao)
    {
        this.xingHao = xingHao;
    }

    @Override
    public String toString()
    {
        return "BatteryPrice [batteryId=" + batteryId + ", city=" + city + ", crateDate=" + crateDate + ", detailInfo="
                + detailInfo + ", id=" + id + ", imageUrl=" + imageUrl + ", marketPrice=" + marketPrice
                + ", minImageUrl=" + minImageUrl + ", ourPrice=" + ourPrice + ", pinPai=" + pinPai + ", province="
                + province + ", sort=" + sort + ", town=" + town + ", updateDate=" + updateDate + ", xingHao="
                + xingHao + "]";
    }
    
}